package com.pgybook.db.entity.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DepositHistoryEx {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DepositHistoryEx() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDeposithisidIsNull() {
            addCriterion("DEPOSITHISID is null");
            return (Criteria) this;
        }

        public Criteria andDeposithisidIsNotNull() {
            addCriterion("DEPOSITHISID is not null");
            return (Criteria) this;
        }

        public Criteria andDeposithisidEqualTo(Long value) {
            addCriterion("DEPOSITHISID =", value, "deposithisid");
            return (Criteria) this;
        }

        public Criteria andDeposithisidNotEqualTo(Long value) {
            addCriterion("DEPOSITHISID <>", value, "deposithisid");
            return (Criteria) this;
        }

        public Criteria andDeposithisidGreaterThan(Long value) {
            addCriterion("DEPOSITHISID >", value, "deposithisid");
            return (Criteria) this;
        }

        public Criteria andDeposithisidGreaterThanOrEqualTo(Long value) {
            addCriterion("DEPOSITHISID >=", value, "deposithisid");
            return (Criteria) this;
        }

        public Criteria andDeposithisidLessThan(Long value) {
            addCriterion("DEPOSITHISID <", value, "deposithisid");
            return (Criteria) this;
        }

        public Criteria andDeposithisidLessThanOrEqualTo(Long value) {
            addCriterion("DEPOSITHISID <=", value, "deposithisid");
            return (Criteria) this;
        }

        public Criteria andDeposithisidIn(List<Long> values) {
            addCriterion("DEPOSITHISID in", values, "deposithisid");
            return (Criteria) this;
        }

        public Criteria andDeposithisidNotIn(List<Long> values) {
            addCriterion("DEPOSITHISID not in", values, "deposithisid");
            return (Criteria) this;
        }

        public Criteria andDeposithisidBetween(Long value1, Long value2) {
            addCriterion("DEPOSITHISID between", value1, value2, "deposithisid");
            return (Criteria) this;
        }

        public Criteria andDeposithisidNotBetween(Long value1, Long value2) {
            addCriterion("DEPOSITHISID not between", value1, value2, "deposithisid");
            return (Criteria) this;
        }

        public Criteria andCustidIsNull() {
            addCriterion("CUSTID is null");
            return (Criteria) this;
        }

        public Criteria andCustidIsNotNull() {
            addCriterion("CUSTID is not null");
            return (Criteria) this;
        }

        public Criteria andCustidEqualTo(Long value) {
            addCriterion("CUSTID =", value, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidNotEqualTo(Long value) {
            addCriterion("CUSTID <>", value, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidGreaterThan(Long value) {
            addCriterion("CUSTID >", value, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidGreaterThanOrEqualTo(Long value) {
            addCriterion("CUSTID >=", value, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidLessThan(Long value) {
            addCriterion("CUSTID <", value, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidLessThanOrEqualTo(Long value) {
            addCriterion("CUSTID <=", value, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidIn(List<Long> values) {
            addCriterion("CUSTID in", values, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidNotIn(List<Long> values) {
            addCriterion("CUSTID not in", values, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidBetween(Long value1, Long value2) {
            addCriterion("CUSTID between", value1, value2, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidNotBetween(Long value1, Long value2) {
            addCriterion("CUSTID not between", value1, value2, "custid");
            return (Criteria) this;
        }

        public Criteria andPaycompanyidIsNull() {
            addCriterion("PAYCOMPANYID is null");
            return (Criteria) this;
        }

        public Criteria andPaycompanyidIsNotNull() {
            addCriterion("PAYCOMPANYID is not null");
            return (Criteria) this;
        }

        public Criteria andPaycompanyidEqualTo(Integer value) {
            addCriterion("PAYCOMPANYID =", value, "paycompanyid");
            return (Criteria) this;
        }

        public Criteria andPaycompanyidNotEqualTo(Integer value) {
            addCriterion("PAYCOMPANYID <>", value, "paycompanyid");
            return (Criteria) this;
        }

        public Criteria andPaycompanyidGreaterThan(Integer value) {
            addCriterion("PAYCOMPANYID >", value, "paycompanyid");
            return (Criteria) this;
        }

        public Criteria andPaycompanyidGreaterThanOrEqualTo(Integer value) {
            addCriterion("PAYCOMPANYID >=", value, "paycompanyid");
            return (Criteria) this;
        }

        public Criteria andPaycompanyidLessThan(Integer value) {
            addCriterion("PAYCOMPANYID <", value, "paycompanyid");
            return (Criteria) this;
        }

        public Criteria andPaycompanyidLessThanOrEqualTo(Integer value) {
            addCriterion("PAYCOMPANYID <=", value, "paycompanyid");
            return (Criteria) this;
        }

        public Criteria andPaycompanyidIn(List<Integer> values) {
            addCriterion("PAYCOMPANYID in", values, "paycompanyid");
            return (Criteria) this;
        }

        public Criteria andPaycompanyidNotIn(List<Integer> values) {
            addCriterion("PAYCOMPANYID not in", values, "paycompanyid");
            return (Criteria) this;
        }

        public Criteria andPaycompanyidBetween(Integer value1, Integer value2) {
            addCriterion("PAYCOMPANYID between", value1, value2, "paycompanyid");
            return (Criteria) this;
        }

        public Criteria andPaycompanyidNotBetween(Integer value1, Integer value2) {
            addCriterion("PAYCOMPANYID not between", value1, value2, "paycompanyid");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("AMOUNT is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("AMOUNT is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(BigDecimal value) {
            addCriterion("AMOUNT =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(BigDecimal value) {
            addCriterion("AMOUNT <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(BigDecimal value) {
            addCriterion("AMOUNT >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("AMOUNT >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(BigDecimal value) {
            addCriterion("AMOUNT <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("AMOUNT <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<BigDecimal> values) {
            addCriterion("AMOUNT in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<BigDecimal> values) {
            addCriterion("AMOUNT not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("AMOUNT between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("AMOUNT not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andCrttimeIsNull() {
            addCriterion("CRTTIME is null");
            return (Criteria) this;
        }

        public Criteria andCrttimeIsNotNull() {
            addCriterion("CRTTIME is not null");
            return (Criteria) this;
        }

        public Criteria andCrttimeEqualTo(Date value) {
            addCriterion("CRTTIME =", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotEqualTo(Date value) {
            addCriterion("CRTTIME <>", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeGreaterThan(Date value) {
            addCriterion("CRTTIME >", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CRTTIME >=", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeLessThan(Date value) {
            addCriterion("CRTTIME <", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeLessThanOrEqualTo(Date value) {
            addCriterion("CRTTIME <=", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeIn(List<Date> values) {
            addCriterion("CRTTIME in", values, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotIn(List<Date> values) {
            addCriterion("CRTTIME not in", values, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeBetween(Date value1, Date value2) {
            addCriterion("CRTTIME between", value1, value2, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotBetween(Date value1, Date value2) {
            addCriterion("CRTTIME not between", value1, value2, "crttime");
            return (Criteria) this;
        }

        public Criteria andOrigdaysIsNull() {
            addCriterion("ORIGDAYS is null");
            return (Criteria) this;
        }

        public Criteria andOrigdaysIsNotNull() {
            addCriterion("ORIGDAYS is not null");
            return (Criteria) this;
        }

        public Criteria andOrigdaysEqualTo(Integer value) {
            addCriterion("ORIGDAYS =", value, "origdays");
            return (Criteria) this;
        }

        public Criteria andOrigdaysNotEqualTo(Integer value) {
            addCriterion("ORIGDAYS <>", value, "origdays");
            return (Criteria) this;
        }

        public Criteria andOrigdaysGreaterThan(Integer value) {
            addCriterion("ORIGDAYS >", value, "origdays");
            return (Criteria) this;
        }

        public Criteria andOrigdaysGreaterThanOrEqualTo(Integer value) {
            addCriterion("ORIGDAYS >=", value, "origdays");
            return (Criteria) this;
        }

        public Criteria andOrigdaysLessThan(Integer value) {
            addCriterion("ORIGDAYS <", value, "origdays");
            return (Criteria) this;
        }

        public Criteria andOrigdaysLessThanOrEqualTo(Integer value) {
            addCriterion("ORIGDAYS <=", value, "origdays");
            return (Criteria) this;
        }

        public Criteria andOrigdaysIn(List<Integer> values) {
            addCriterion("ORIGDAYS in", values, "origdays");
            return (Criteria) this;
        }

        public Criteria andOrigdaysNotIn(List<Integer> values) {
            addCriterion("ORIGDAYS not in", values, "origdays");
            return (Criteria) this;
        }

        public Criteria andOrigdaysBetween(Integer value1, Integer value2) {
            addCriterion("ORIGDAYS between", value1, value2, "origdays");
            return (Criteria) this;
        }

        public Criteria andOrigdaysNotBetween(Integer value1, Integer value2) {
            addCriterion("ORIGDAYS not between", value1, value2, "origdays");
            return (Criteria) this;
        }

        public Criteria andDestdaysIsNull() {
            addCriterion("DESTDAYS is null");
            return (Criteria) this;
        }

        public Criteria andDestdaysIsNotNull() {
            addCriterion("DESTDAYS is not null");
            return (Criteria) this;
        }

        public Criteria andDestdaysEqualTo(Integer value) {
            addCriterion("DESTDAYS =", value, "destdays");
            return (Criteria) this;
        }

        public Criteria andDestdaysNotEqualTo(Integer value) {
            addCriterion("DESTDAYS <>", value, "destdays");
            return (Criteria) this;
        }

        public Criteria andDestdaysGreaterThan(Integer value) {
            addCriterion("DESTDAYS >", value, "destdays");
            return (Criteria) this;
        }

        public Criteria andDestdaysGreaterThanOrEqualTo(Integer value) {
            addCriterion("DESTDAYS >=", value, "destdays");
            return (Criteria) this;
        }

        public Criteria andDestdaysLessThan(Integer value) {
            addCriterion("DESTDAYS <", value, "destdays");
            return (Criteria) this;
        }

        public Criteria andDestdaysLessThanOrEqualTo(Integer value) {
            addCriterion("DESTDAYS <=", value, "destdays");
            return (Criteria) this;
        }

        public Criteria andDestdaysIn(List<Integer> values) {
            addCriterion("DESTDAYS in", values, "destdays");
            return (Criteria) this;
        }

        public Criteria andDestdaysNotIn(List<Integer> values) {
            addCriterion("DESTDAYS not in", values, "destdays");
            return (Criteria) this;
        }

        public Criteria andDestdaysBetween(Integer value1, Integer value2) {
            addCriterion("DESTDAYS between", value1, value2, "destdays");
            return (Criteria) this;
        }

        public Criteria andDestdaysNotBetween(Integer value1, Integer value2) {
            addCriterion("DESTDAYS not between", value1, value2, "destdays");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}